package com.example.aopdemo.demos.proxy;

public class Main {
    public static void main(String[] args) {
        // 目标对象
        // 静态代理:在代理的时候,就知道了是哪个对象
        HouseSubject subject = new RealHouseSubject();
        HouseSubject proxy = new HouseProxy(subject);
        proxy.rentHouse();
    }
}
